<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>遍历数组</title>
</head>
<body>

</body>
<script>
  var arr = [12,25,36,45,68,96,52]
  // for(var i=0;i<arr.length;i++){
  //     console.log(arr[i])
  // }

   for(index in arr){
       console.log(index) //获取的是数组下标
   }

   console.log("==========================")

    for(item of arr){
       console.log(item) //获取的是数组下标
   }
</script>
</html>